import { option, flagList } from './baseStatistics'

export const costSums = [
  { label: '开方数', value: 0 },
  { label: '成方数', value: 0 },
  { label: '销售额', value: 0 },
  { label: '成本价', value: 0 },
  { label: '退方数', value: 0 },
  { label: '退方金额', value: 0 },
  { label: '优惠金额', value: 0 }
]

export const columns = [
  {
    sortable: true,
    label: '日期',
    prop: 'date',
    width: 100
  },
  {
    label: '西药及中成药',
    children: [
      {
        prop: 'xyPayInfoNum',
        sortable: true,
        label: '成方数'
      },
      {
        prop: 'xyInfoNum',
        sortable: true,
        label: '开方数'
      },
      {
        prop: 'xyPayInfoFee',
        sortable: true,
        label: '销售额',
        slot: true
      },
      {
        sortable: true,
        prop: 'xyCost',
        label: '成本',
        slot: true
      },
      {
        prop: 'xyProfit',
        sortable: true,
        label: '利润',
        slot: true
      }
    ]
  },
  {
    label: '中药饮片',
    children: [
      {
        prop: 'ypPayInfoNum',
        sortable: true,
        label: '成方数'
      },
      {
        prop: 'ypInfoNum',
        sortable: true,
        label: '开方数'
      },
      {
        prop: 'ypPayInfoFee',
        label: '销售额',
        sortable: true,
        slot: true
      },
      {
        sortable: true,
        prop: 'ypCost',
        label: '成本',
        slot: true
      },
      {
        prop: 'ypProfit',
        sortable: true,
        label: '利润',
        slot: true
      }
    ]
  },
  {
    label: '颗粒剂',
    children: [
      {
        prop: 'kljPayInfoNum',
        sortable: true,
        label: '成方数'
      },
      {
        prop: 'kljInfoNum',
        sortable: true,
        label: '开方数'
      },
      {
        prop: 'kljPayInfoFee',
        sortable: true,
        label: '销售额',
        slot: true
      },
      {
        prop: 'kljCost',
        sortable: true,
        label: '成本',
        slot: true
      },
      {
        prop: 'kljProfit',
        sortable: true,
        label: '利润',
        slot: true
      }
    ]
  }
]

export const pickerOptions = option

export const typeList = flagList
